arm: mx6: novena: Define CONFIG_SYS_MALLOC_F_LEN
authorMarek Vasut <[email protected]>
Tue, 16 Dec 2014 13:09:18 +0000 (14:09 +0100)
committerStefano Babic <[email protected]>
Tue, 30 Dec 2014 13:05:54 +0000 (14:05 +0100)
This board uses setup_i2c() in SPL. The setup_i2c() function internally
calls gpio_request(), which in turn internally calls strdup(). The strdup()
requires a running mallocator, so this patch makes the mallocator available.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Igor Grinberg <[email protected]>
Cc: Nikita Kiryanov <[email protected]>
Cc: Sean Cross <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Tim Harvey <[email protected]>
include/configs/novena.h

index 879141a7ca1130bc02e06d622f11155c7a67926f..0f3621a41b24bc17b5ceffa6139eaee0dc999741 100644 (file)
 #define CONFIG_SYS_MEMTEST_END         0x20000000
 
 #define CONFIG_SYS_MALLOC_LEN          (64 * 1024 * 1024)
+#define CONFIG_SYS_MALLOC_F_LEN                (1 << 10)
 
 /* SPL */
 #define CONFIG_SPL_FAT_SUPPORT